package com.farmer.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 订单服务启动类
 */
@SpringBootApplication(scanBasePackages = {"com.farmer"})
@EnableDiscoveryClient
// @EnableFeignClients  // 暂时禁用，等商品服务完成后再启用
@MapperScan("com.farmer.order.mapper")
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
        System.out.println("==== 订单服务启动成功 ====");
    }
} 